//
//  DDVoiceRecordView.h
//  DingDongZP
//
//  Created by 王威 on 16/3/18.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, DDChatRecorderMetersAlertViewState) {
    DDChatRecorderMetersAlertViewStateRecording = 0,
    DDChatRecorderMetersAlertViewStateCancelTips,
    DDChatRecorderMetersAlertViewStateWarning,
};

@interface DDVoiceRecordView : UIView

@property (nonatomic, strong) UIView *contentView;
@property (nonatomic, strong) UILabel *durationLabel;
@property (nonatomic, strong) UIImageView *audioMeterBackgroundView;
@property (nonatomic, strong) UIImageView *audioMeterView;
@property (nonatomic, strong) UIImageView *warningView;
@property (nonatomic, strong) UILabel *tipsLabel;

@property (nonatomic) DDChatRecorderMetersAlertViewState state;
@property (nonatomic) float audioMeterProgress;
@property (nonatomic) int duration;

- (void)show;
- (void)dismiss;
- (BOOL)isShowing;
@end
